﻿using LNet;
using OestsServer.Net;
using System;

namespace OestsServer.Handlers.UnityHandlers
{
    public class HeartBeatHandler : HandlerBase<UnityClientChannel>
    {
        public override PacketKey PKey => PacketKey.HeartBeat;

        public override void Execute(UnityClientChannel client, Request resquestPacket)
        {
            base.Execute(client, resquestPacket);

            client.lastPing = DateTime.Now.Ticks;
            client.Send(new Response(resquestPacket));
        }


    }

}